package com.easytake.emotioncat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 情绪记录表
 * </p>
 *
 * @author baomidou
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("em_list")
@Schema(title = "心情记录")
public class EmListEntity implements Serializable {


    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @Schema(title = "自增主键")
    private String id;

    /**
     * 对应wx的userId
     */
    @TableField("user_id")
    @Schema(title = "对应wx的userId")
    private String userId;

    /**
     * 情绪记录内容
     */
    @TableField("content")
    @Schema(title = "情绪记录内容")
    private String content;

    /**
     * 图像url集合，使用;拼接
     */
    @TableField("images")
    @Schema(title = "图像url集合，使用;拼接")
    private String images;

    /**
     * 情绪类型
     */
    @TableField("category")
    @Schema(title = "情绪类型")
    private String category;

    /**
     * 情绪影响
     */
    @TableField("affect")
    @Schema(title = "情绪影响")
    private String affect;

    /**
     * 是否公开:0-否,1-是
     */
    @TableField("is_public")
    @Schema(title = "是否公开:0-否,1-是")
    private Integer isPublic;

    /**
     * 是否删除 0-否,1-是
     */
    @TableField("deleted")
    @Schema(title = "是否删除 0-否,1-是")
    private Integer deleted = 0;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @Schema(title = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("modify_time")
    @Schema(title = "更新时间")
    private LocalDateTime modifyTime;
}
